<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .error_div{
            display: flex;
            justify-content: center;
            align-items: center;
        }

        p{
            font-size: 2.5vw;
        }
    </style>
</head>
<body>

    <div class="error_div">
      <p id="error" th:text="${error}"></p>
    </div>

    <script>
        let second = 3;
        let p = document.getElementById("error");
        p.style.color='red';
        window.onload = function(){
            setInterval(function(){
                p.innerText='操作失败，'+second+'秒后回到首页，请联系管理员'
                second--;
                if(second == -1){
                    window.location.href='/returnIndex';
                }
            },1000)
        }
    </script>



</body>
</html>